﻿@model OMS.Models.ItemModelView

@{
    ViewBag.Title = "EditItem";
}

<h2>EditItem</h2>

@using (@Html.BeginForm())
{
    @Html.HiddenFor(m => m.Id)
    <table align=center>
        <tr>
            <td>@Html.LabelFor(m => m.Name)</td>
            <td>@Html.EditorFor(m => m.Name)</td>
            <td>@Html.ValidationMessageFor(m => m.Name)</td>
        </tr>
        <tr>
            <td>@Html.LabelFor(m => m.Description)</td>
            <td>@Html.EditorFor(m => m.Description)</td>
            <td>@Html.ValidationMessageFor(m => m.Description)</td>
        </tr>
        <tr>
            <td>@Html.LabelFor(m => m.Price)</td>
            <td>@Html.EditorFor(m => m.Price)</td>
            <td>@Html.ValidationMessageFor(m => m.Price)</td>
        </tr>
        <tr>
            <td>@Html.LabelFor(m => m.Quantity)</td>
            <td>@Html.EditorFor(m => m.Quantity)</td>
            <td>@Html.ValidationMessageFor(m => m.Quantity)</td>
        </tr>
    </table>
    <button type=submit>Save changes</button>
}